<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8" />
<title>商品管理 - 分润设置</title>
<?php include($this->c['_homes']['_viewsHome'].'/_global/_head.php');?>
</head>
<!-- BEGIN BODY -->
<body class="page-header-fixed page-sidebar-fixed">
<!-- BEGIN HEADER -->
<?php include($this->c['_homes']['_viewsHome'].'/_global/head.php');?>
<!-- END HEADER -->
<div class="clearfix"></div>
<!-- BEGIN CONTAINER -->
<div class="page-container" > 
  <!-- BEGIN HORIZONTAL MENU PAGE SIDEBAR1 -->
  <?php include($this->c['_homes']['_viewsHome'].'/_global/menu.php');?>
  <!-- END BEGIN HORIZONTAL MENU PAGE SIDEBAR --> 
  <!-- BEGIN PAGE -->
  <div class="page-content"> 
    <!-- BEGIN PAGE HEADER-->
    <div class="row">
      <div class="col-md-12"> 
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
        <h3 class="page-title"> 分润设置 </h3>
        <ul class="page-breadcrumb breadcrumb">
          <li> <i class="icon-home"></i> <a href="/manage">后台</a> <i class="icon-angle-right"></i> </li>
          <li> 商品管理 <i class="icon-angle-right"></i> </li>       
          <li> <a href="channelgoods">商品列表</a> <i class="icon-angle-right"></i> </li>   
          <li>分润设置</li>
        </ul>
        <!-- END PAGE TITLE & BREADCRUMB--> 
      </div>
    </div>
    <!-- END PAGE HEADER--> 
    <!-- BEGIN PAGE CONTENT-->
    
    <div class="row">
      <div class="col-md-12"> 
        <!-- BEGIN SAMPLE FORM PORTLET-->
        <form class="form-horizontal" method="post" action="/channel/savegoods" role="form">
          <input type="hidden" name="act" value="commission">
          <input type="hidden" name="goods_id" value="<?=$this->data['goods_id'];?>">
          <input type="hidden" name="ref" value="<?=$_SERVER['HTTP_REFERER'];?>">
          <div class="tabbable tabbable-custom boxless">            
            <div class="tab-content"> 
              <!--Tab0-->
              <div class="tab-pane active" id="tab_0">
                <div class="portlet box blue ">
                  <div class="portlet-title">
                    <div class="caption"> <i class="icon-reorder"></i> 商品分润设置 </div>
                  </div>
                  <div class="portlet-body form">
                    <div class="form-body">                                        
                      <div class="form-group">
                        <label  class="col-md-2 control-label">商品ID</label>
                        <div class="col-md-9">
                        <h5><?=$this->data['goods_id'];?></h5>                          
                        </div>
                      </div>                      
                      <div class="form-group">
                        <label  class="col-md-2 control-label">商品名称</label>
                        <div class="col-md-9">
                          <h5><?=$this->data['goods_name'];?></h5>
                        </div>
                      </div>                      
                      <div class="form-group">
                        <label  class="col-md-2 control-label">商品类型</label>
                        <div class="col-md-6">
                          <h5><?=$this->c['goods_type'][$this->data['goods_type']];?></h5>
                        </div>
                      </div>
                      <hr>
                      <div class="form-group">
                        <label  class="col-md-2 control-label">零售价格</label>
                        <div class="col-md-6">
                          <h5><?=$this->data['shop_price'];?></h5>
                        </div>
                      </div>                                            
                      <div class="form-group">
                        <label  class="col-md-2 control-label">硒米价格</label>
                        <div class="col-md-6">
                          <h5><?=$this->data['ximi_price'];?></h5>
                        </div>
                      </div>
                      <div class="form-group">
                        <label  class="col-md-2 control-label">金花价格</label>
                        <div class="col-md-6">
                          <h5><?=$this->data['jinhua_price'];?></h5>
                        </div>
                      </div>
                      <div class="form-group">
                        <label  class="col-md-2 control-label">可使用代金券数量</label>
                        <div class="col-md-6">
                          <h5><?=$this->data['coupon_price'];?></h5>
                        </div>
                      </div> 
                      <hr>
                      <div class="form-group">
                        <label  class="col-md-2 control-label">赠送商品票数量</label>
                        <div class="col-md-6">
                          <h5><?=$this->data['give_ticket'];?></h5>
                        </div>
                      </div>
                      <div class="form-group">
                        <label  class="col-md-2 control-label">赠送代金券数量</label>
                        <div class="col-md-6">
                          <h5><?=$this->data['give_coupon'];?></h5>
                        </div>
                      </div>
                      <hr>
                      <div class="alert alert-info">
                        <strong>一级分润设置</strong>
                      </div>                                    
                      <div class="form-group">
                        <label class="col-md-2 control-label">获得硒豆数量</label>
                        <div class="col-md-2">
                           <input type="text" name="xidou[1]" maxlength="8" class="form-control" value="<?=$this->data['json']['xidou'][1] ? : 0;?>">
                        </div>                        
                      </div>
                      <div class="form-group">
                        <label class="col-md-2 control-label">获得商品票数量</label>
                        <div class="col-md-2">
                           <input type="text" name="ticket[1]" maxlength="8" class="form-control" value="<?=$this->data['json']['ticket'][1] ? : 0;?>">
                        </div>                        
                      </div>
                      <div class="form-group">
                        <label class="col-md-2 control-label">获得硒米数量</label>
                        <div class="col-md-2">
                           <input type="text" name="ximi[1]" maxlength="8" class="form-control" value="<?=$this->data['json']['ximi'][1] ? : 0;?>">
                        </div>                        
                      </div>
                      <div class="alert alert-info">
                        <strong>二级分润设置</strong>
                      </div>                                    
                      <div class="form-group">
                        <label class="col-md-2 control-label">获得硒豆数量</label>
                        <div class="col-md-2">
                           <input type="text" name="xidou[2]" maxlength="8" class="form-control" value="<?=$this->data['json']['xidou'][2] ? : 0;?>">
                        </div>                        
                      </div>
                      <div class="form-group">
                        <label class="col-md-2 control-label">获得商品票数量</label>
                        <div class="col-md-2">
                           <input type="text" name="ticket[2]" maxlength="8" class="form-control" value="<?=$this->data['json']['ticket'][2] ? : 0;?>">
                        </div>                        
                      </div>
                      <div class="form-group">
                        <label class="col-md-2 control-label">获得硒米数量</label>
                        <div class="col-md-2">
                           <input type="text" name="ximi[2]" maxlength="8" class="form-control" value="<?=$this->data['json']['ximi'][2] ? : 0;?>">
                        </div>                        
                      </div>

                      <div class="alert alert-info">
                          <strong>创客直推分润设置</strong>
                      </div>
                      <div class="form-group">
                          <label class="col-md-2 control-label">365会员</label>
                          <div class="col-md-2">
                              <input type="text" name="maker_level[1][1]" maxlength="8" class="form-control" value="<?=$this->data['json']['maker_level'][1][1] ? : 0;?>">
                          </div>
                      </div>
                      <div class="form-group">
                          <label class="col-md-2 control-label">良品e店</label>
                          <div class="col-md-2">
                              <input type="text" name="maker_level[1][2]" maxlength="8" class="form-control" value="<?=$this->data['json']['maker_level'][1][2] ? : 0;?>">
                          </div>
                      </div>
                      <div class="form-group">
                          <label class="col-md-2 control-label">西海代理</label>
                          <div class="col-md-2">
                              <input type="text" name="maker_level[1][3]" maxlength="8" class="form-control" value="<?=$this->data['json']['maker_level'][1][3] ? : 0;?>">
                          </div>
                      </div>
                      <div class="form-group">
                          <label class="col-md-2 control-label">银牌创客</label>
                          <div class="col-md-2">
                              <input type="text" name="maker_level[1][4]" maxlength="8" class="form-control" value="<?=$this->data['json']['maker_level'][1][4] ? : 0;?>">
                          </div>
                      </div>
                      <div class="form-group">
                          <label class="col-md-2 control-label">金牌创客</label>
                          <div class="col-md-2">
                              <input type="text" name="maker_level[1][5]" maxlength="8" class="form-control" value="<?=$this->data['json']['maker_level'][1][5] ? : 0;?>">
                          </div>
                      </div>
                      <div class="form-group">
                          <label class="col-md-2 control-label">业务经理</label>
                          <div class="col-md-2">
                              <input type="text" name="maker_level[1][6]" maxlength="8" class="form-control" value="<?=$this->data['json']['maker_level'][1][6] ? : 0;?>">
                          </div>
                      </div>
                      <div class="form-group">
                          <label class="col-md-2 control-label">区域总监</label>
                          <div class="col-md-2">
                              <input type="text" name="maker_level[1][7]" maxlength="8" class="form-control" value="<?=$this->data['json']['maker_level'][1][7] ? : 0;?>">
                          </div>
                      </div>
                      <div class="form-group">
                          <label class="col-md-2 control-label">区县代理</label>
                          <div class="col-md-2">
                              <input type="text" name="maker_level[1][8]" maxlength="8" class="form-control" value="<?=$this->data['json']['maker_level'][1][8] ? : 0;?>">
                          </div>
                      </div>
                      <div class="alert alert-info">
                          <strong>创客间推分润设置</strong>
                      </div>
                      <div class="form-group">
                          <label class="col-md-2 control-label">365会员</label>
                          <div class="col-md-2">
                              <input type="text" name="maker_level[2][1]" maxlength="8" class="form-control" value="<?=$this->data['json']['maker_level'][2][1] ? : 0;?>">
                          </div>
                      </div>
                      <div class="form-group">
                          <label class="col-md-2 control-label">良品e店</label>
                          <div class="col-md-2">
                              <input type="text" name="maker_level[2][2]" maxlength="8" class="form-control" value="<?=$this->data['json']['maker_level'][2][2] ? : 0;?>">
                          </div>
                      </div>
                      <div class="form-group">
                          <label class="col-md-2 control-label">西海代理</label>
                          <div class="col-md-2">
                              <input type="text" name="maker_level[2][3]" maxlength="8" class="form-control" value="<?=$this->data['json']['maker_level'][2][3] ? : 0;?>">
                          </div>
                      </div>
                      <div class="form-group">
                          <label class="col-md-2 control-label">银牌创客</label>
                          <div class="col-md-2">
                              <input type="text" name="maker_level[2][4]" maxlength="8" class="form-control" value="<?=$this->data['json']['maker_level'][2][4] ? : 0;?>">
                          </div>
                      </div>
                      <div class="form-group">
                          <label class="col-md-2 control-label">金牌创客</label>
                          <div class="col-md-2">
                              <input type="text" name="maker_level[2][5]" maxlength="8" class="form-control" value="<?=$this->data['json']['maker_level'][2][5] ? : 0;?>">
                          </div>
                      </div>
                      <div class="form-group">
                          <label class="col-md-2 control-label">业务经理</label>
                          <div class="col-md-2">
                              <input type="text" name="maker_level[2][6]" maxlength="8" class="form-control" value="<?=$this->data['json']['maker_level'][2][6] ? : 0;?>">
                          </div>
                      </div>
                      <div class="form-group">
                          <label class="col-md-2 control-label">区域总监</label>
                          <div class="col-md-2">
                              <input type="text" name="maker_level[2][7]" maxlength="8" class="form-control" value="<?=$this->data['json']['maker_level'][2][7] ? : 0;?>">
                          </div>
                      </div>
                      <div class="form-group">
                          <label class="col-md-2 control-label">区县代理</label>
                          <div class="col-md-2">
                              <input type="text" name="maker_level[2][8]" maxlength="8" class="form-control" value="<?=$this->data['json']['maker_level'][2][8] ? : 0;?>">
                          </div>
                      </div>
                      <div class="alert alert-info">
                        <strong>创客奖励</strong>
                      </div>                                                          
                      <div class="form-group">
                        <label class="col-md-2 control-label">业务经理/区域总监推荐奖励</label>
                        <div class="col-md-2">
                           <input type="text" name="maker_level[jc][1]" maxlength="8" class="form-control" value="<?=$this->data['json']['maker_level']['jc'][1] ? : 0;?>">
                        </div>                        
                      </div>
                      <div class="form-group">
                        <label class="col-md-2 control-label">业务经理/区域总监培训奖励</label>
                        <div class="col-md-2">
                           <input type="text" name="maker_level[jc][2]" maxlength="8" class="form-control" value="<?=$this->data['json']['maker_level']['jc'][2] ? : 0;?>">
                        </div>                        
                      </div>
                      <div class="alert alert-info">
                        <strong>创业礼包</strong>
                      </div>                                                          
                      <div class="form-group">
                        <label class="col-md-2 control-label">良品e店/西海代理推荐奖励</label>
                        <div class="col-md-2">
                           <input type="text" name="chuangye[lped][1]" maxlength="8" class="form-control" value="<?=$this->data['json']['chuangye']['lped'][1] ? : 0;?>">
                        </div>                        
                      </div>
                      <div class="form-group">
                        <label class="col-md-2 control-label">良品e店/西海代理培训奖励</label>
                        <div class="col-md-2">
                           <input type="text" name="chuangye[lped][2]" maxlength="8" class="form-control" value="<?=$this->data['json']['chuangye']['lped'][2] ? : 0;?>">
                        </div>                        
                      </div>
                      <div class="alert alert-info">
                        <strong>复购产品（3号店）销售级差</strong>
                      </div>
                      <div class="form-group">
                        <label class="col-md-2 control-label">西海代理</label>
                        <div class="col-md-2">
                           <input type="text" name="fugou[jicha][3]" maxlength="8" class="form-control" value="<?=$this->data['json']['fugou']['jicha'][3] ? : 0;?>">
                        </div>                        
                      </div>
                      <div class="form-group">
                        <label class="col-md-2 control-label">良品e店</label>
                        <div class="col-md-2">
                           <input type="text" name="fugou[jicha][2]" maxlength="8" class="form-control" value="<?=$this->data['json']['fugou']['jicha'][2] ? : 0;?>">
                        </div>                        
                      </div>
                      <div class="form-group">
                        <label class="col-md-2 control-label">365e店</label>
                        <div class="col-md-2">
                           <input type="text" name="fugou[jicha][1]" maxlength="8" class="form-control" value="<?=$this->data['json']['fugou']['jicha'][1] ? : 0;?>">
                        </div>                        
                      </div>
                      <div class="alert alert-info">
                        <strong>复购产品（3号店）平级奖金</strong>
                      </div>
                      <div class="form-group">
                        <label class="col-md-2 control-label">西海代理</label>
                        <div class="col-md-2">
                           <input type="text" name="fugou[pingji][3]" maxlength="8" class="form-control" value="<?=$this->data['json']['fugou']['pingji'][3] ? : 0;?>">
                        </div>                        
                      </div>
                      <div class="form-group">
                        <label class="col-md-2 control-label">良品e店</label>
                        <div class="col-md-2">
                           <input type="text" name="fugou[pingji][2]" maxlength="8" class="form-control" value="<?=$this->data['json']['fugou']['pingji'][2] ? : 0;?>">
                        </div>                        
                      </div>
                      <div class="form-group">
                        <label class="col-md-2 control-label">365e店</label>
                        <div class="col-md-2">
                           <input type="text" name="fugou[pingji][1]" maxlength="8" class="form-control" value="<?=$this->data['json']['fugou']['pingji'][1] ? : 0;?>">
                        </div>                        
                      </div>
                    </div>
                    <div class="form-actions fluid">
                      <div class="col-md-offset-2 col-md-9">
                     
                        <button type="submit" class="btn blue">提交</button>
                        <button type="button" class="btn gray" onclick="history.back(1);">返回</button>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              
            </div>
          </div>
        </form>
        <!-- END SAMPLE FORM PORTLET--> 
      </div>
    </div>
    <!-- END PAGE CONTENT--> 
  </div>
  <!-- END PAGE --> 
</div>
<!-- END CONTAINER -->
<?php include($this->c['_homes']['_viewsHome'].'/_global/_footer.php');?>
<script>
jQuery(document).ready(function() {    
  App.init();
});
</script> 
<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>